import request from '@/router/axios';

export const adminhomeInfo = () => {
  return request({
    url: '/base/index/getIndexStatisticsInfo',
    method: 'post',
    params: {
    }
  })
}
export const adminhomeSystem = () => {
  return request({
    url: '/api/indexStatisticsSystem',
    method: 'post',
    params: {
    }
  })
}
export const adminhomeOrder = () => {
  return request({
    url: '/order/orderFormIndex/indexStatisticsOrder',
    method: 'post',
    params: {
    }
  })
}
export const adminhomeAccount = () => {
  return request({
    url: '/account/userAccountIndex/indexStatisticsAccount',
    method: 'post',
    params: {
    }
  })
}
export const getDetail = (id) => {
  return request({
    url: '/cms/cmsArticle/detail',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      id,
    }
  })
}
export const storeCms = () => {
  return request({
    url: '/cms/index/indexAdminStaticCms',
    method: 'get',
  })
}
export const listTreeBylevelM = (levelM) => {
  return request({
    url: '/base/organization/getOrganization',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      levelM
    }
  })
}